import http from '../http'

// 获取所有诊所信息
export const getAllClinicInfo = () => {
  return http.get('/api/clinic/getClinic')
}

// 获取诊所信息
export const getClinicInfo = (id: number) => {
  return http.get(`/api/clinic/getClinic?id=${id}`)
}

// 获取项目信息
export const getItemInfo = (id: number) => {
  return http.get(`/api/item/getItems?clinicid=${id}`)
}

// 预约
export const subscribe = (data: any) => {
  return http.post('/api.php/subscribe/createSubscribe', data)
}
